package cn.com.dhc.chesishanbigdemo1;

public class RegisterServiceImpl implements RegisterService {

	private RegisterDao registerDao = new RegisterDao();

	// private DeliveryAddressDao;

	/*
	 * 完成用户对注册的Dao的编写
	 * 
	 * @see
	 * com.product.register.service.RegisterService#registerUser(java.util.List)
	 */
	@Override
	public boolean registerUser(User user) {
		// username < 6 or > 12
		// password num
		int influenceCount = registerDao.insertUser(user);
		// insert delivery address
		// DeliveryAddressDao.insert(..)
		return influenceCount == 1;
	}

}
